﻿package mortal.component.skin.button
{
    import com.mui.core.*;
    import com.mui.skins.*;
    import fl.core.*;
    import flash.geom.*;
    import flash.text.*;
    import mortal.common.*;
    import mortal.game.resource.*;

    public class PageBtnStyle extends SkinStyle
    {
        private var _scaleRect:Rectangle;
        private var _textFormat:TextFormat;
        private var _disabledTextFormat:TextFormat;

        public function PageBtnStyle()
        {
            this._scaleRect = new Rectangle(10, 8, 9, 4);
            this._textFormat = new GTextFormat(null, 12, 7446740);
            this._disabledTextFormat = new GTextFormat(null, 12, 14193522);
            return;
        }// end function

        override public function setStyle(param1:UIComponent) : void
        {
            param1.setStyle("upSkin", GlobalClass.getScaleBitmap(ImagesConst.PageBtn_upSkin, this._scaleRect));
            param1.setStyle("downSkin", GlobalClass.getScaleBitmap(ImagesConst.PageBtn_upSkin, this._scaleRect));
            param1.setStyle("overSkin", GlobalClass.getScaleBitmap(ImagesConst.PageBtn_overSkin, this._scaleRect));
            param1.setStyle("disabledSkin", GlobalClass.getScaleBitmap(ImagesConst.PageBtn_disabledSkin, this._scaleRect));
            param1.setStyle("textFormat", this._textFormat);
            param1.setStyle("disabledTextFormat", this._disabledTextFormat);
            param1.setStyle("selectedUpSkin", GlobalClass.getScaleBitmap(ImagesConst.PageBtn_overSkin, this._scaleRect));
            param1.setStyle("selectedDownSkin", GlobalClass.getScaleBitmap(ImagesConst.PageBtn_upSkin, this._scaleRect));
            param1.setStyle("selectedOverSkin", GlobalClass.getScaleBitmap(ImagesConst.PageBtn_overSkin, this._scaleRect));
            return;
        }// end function

    }
}
